﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 学雷锋_工厂方法模式_
{
    class Program
    {
        static void Main(string[] args)
        {
            IFactory factory = new UndergraduateFactory();
            LeiFeng leifeng = factory.CreateLeiFeng();
            leifeng.BuyRice();
            leifeng.Sweep();
            leifeng.Wash();
        }
    }
}
